
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--<%@ page contentType="text/html" charset="UTF-8" language="java" %>    &lt;%&ndash;报500&ndash;%&gt;--%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
   1 404
    <a href="<%=basePath%>error/dont.do">不存在的.do</a>
    2.空指针异常
   <a href="<%=basePath%>error/kong.do">空指针异常.do</a>
   3.500
   <a href="<%=basePath%>error/500.do">500异常.do</a>
</body>
</html>
